package com.party.core.service.mall;

import com.party.common.paging.Page;
import com.party.core.model.mall.MallShoppingCart;
import com.party.core.model.mall.MallShoppingCartOutput;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @Author: Administrator.
 * @Description: 商城购物车
 * @Date:Created in 2017/8/29 0029 上午 11:49.
 */
public interface IMallShoppingCartService extends IBaseService<MallShoppingCart> {
    List<MallShoppingCart> findByMemberId(String memberId);

    MallShoppingCart getUnique(MallShoppingCart cart);

    List<MallShoppingCartOutput> newListPage(Map<String, Object> params, Page page);

    List<MallShoppingCart> findByProductId(String productId);

    void deleteByProductId(String productId);
}
